<script setup>
  import {ref} from "vue";

  const name=ref('张先生')
  const url=ref('https://www.baidu.com/')
  url.value='https://www.gying.net/py/Q19YO_4.html'
</script>

<template>
<h1>我是B组件</h1>
  <input type="text" value="name">
  <input type="text" v-bind:value="name">
  <input type="text" :value="name">
  <hr>
  <a :href="url" target="_blank">x网站</a>
</template>

<style scoped>

</style>